<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="采购入库" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addBy()"
                        ng-disabled="!btnPermission.purchaseInAdd">新增</button>
                    <!-- <button class="btn btn-operate m-r-sm" ng-click="addByPurchaseOrder()"
                        ng-disabled="!btnPermission.purchaseInAdd" translate
                        translate-attr-title="{{!btnPermission.purchaseInAdd?'无权限执行此操作':''}}">采购订单新增</button> -->
                    <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                        ng-disabled="!btnPermission.purchaseInDel" translate
                        translate-attr-title="{{!btnPermission.purchaseInDel?'无权限执行此操作':''}}">删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importAdd()" ng-if="isZHJCH" translate>导入新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate
                            translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseInExport">
                            <div translate translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i><span translate>导出</span>
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3">
                                    <i class="yb-icon ico-export-o"></i><span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')"
                        translate-attr-title="高级搜索" translate="高级搜索more"></button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate translate-attr-placeholder="入库单号"
                            ng-model="condition.purchaseInboundOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()" date-picker="true" hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>入库单号</span>：</label>
                        <input type="text" ng-model="condition.purchaseInboundOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>调入仓库</span>：</label>
                        <input type="text" ng-model="condition.warehouseCode" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>采购单号</span>：</label>
                        <input type="text" ng-model="condition.purchaseRequestOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>零件号</span>：</label>
                        <input type="text" ng-model="condition.materialNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>制单人</span>：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>入库状态</span>：</label>
                        <select name="returnStatus" class="form-control" ng-model="condition.status"
                            ng-options="item.id as item.name for item in inState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>创建日期</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectAll('')">
                                        </div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item,'')">
                                        </div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="printBill(item)" ng-disabled="!btnPermission.purchaseInPrint"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseInPrint?'无权限执行此操作':''}}">打印</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editData(item)"
                                                ng-disabled="item.status === 2 || item.status === 3 || !btnPermission.purchaseInEdit"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseInEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="inbound(item)"
                                                ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="item.status !== 0 || !btnPermission.purchaseInIn" translate
                                                translate-attr-title="{{!btnPermission.purchaseInIn?'无权限执行此操作':''}}">入库</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delData('single', item.id)"
                                                ng-disabled="item.status !== 0 || !btnPermission.purchaseInDel"
                                                translate
                                                translate-attr-title="{{!btnPermission.purchaseInDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="mandatoryFinish(item.purchaseInboundOrder)"
                                                ng-disabled="item.status == 2 || item.status == 3 || !btnPermission.mandatoryFinish"
                                                translate
                                                translate-attr-title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="!itemCol.clickFn || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] !== '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] === '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll('')"></div>
                <button class="btn btn-operate" ng-click="delData('batch')" ng-disabled="!btnPermission.purchaseInDel"
                    translate translate-attr-title="{{!btnPermission.purchaseInDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="采购订单新增" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div yb-step-bar class="m-t m-b-sm" ng-model="steps" style="width: 60%"></div>
            <div ng-show="steps.curStep === 0">
                <div class="row p-t-sm p-b-sm border-t">
                    <div class="operate-bar col-xs-4 font-0">
                        <button class="btn btn-operate" ng-click="selBill('','batch')"> <span
                                translate>批量选择</span></button>
                    </div>

                    <div class="search-bar wrapper-none col-xs-8">
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" translate
                                translate-attr-placeholder="采购单号,多个逗号分隔" ng-model="orderCondition.billNos">
                            <span class="input-group-addon cursor-pointer" ng-click="orderSearch(1)" translate>搜索</span>
                        </div>
                        <div class="normal-search clearfix pull-right">
                            <label class="control-label"><span translate>供货商</span>：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="orderCondition.supplierOrgName">
                        </div>
                    </div>
                </div>
                <div class="main-area" style="top:170px;">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{purchaseBillTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center th-check border-l-none">
                                            <div yb-check-box yb-checked="markInfo.addAllChecked"
                                                yb-click="selectAll('add')"></div>
                                        </th>
                                        <th width="80" translate>
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in purchaseBillTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="purchaseBillTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="purchaseBillList.length > 0">
                            <table class="table-fixed border-none" width="{{purchaseBillTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in purchaseBillList track by $index">
                                        <td width="40" class="text-center border-l-none">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="selectSingle(item,'add')"></div>
                                        </td>
                                        <td width="80">
                                            <button type="button" class="btn btn-operate"
                                                ng-click="selBill(item,'single')" translate>选择</button>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in purchaseBillTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}"
                                            ng-show="!itemCol.isFixed">
                                            {{item[itemCol.dataField]}}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="purchaseBillList.length === 0" translate>
                            暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="billPageInfo" yb-refresh="orderSearch()"></div>
                </div>
            </div>
            <div ng-show="steps.curStep === 1">
                <form name="form" class="p-t-sm p-b-sm form-horizontal form-up-tb border-t clearfix" novalidate>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.createName}}">
                            {{detailInfo.headerInfo.createName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单部门</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.deptName}}">
                            {{detailInfo.headerInfo.deptName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                            {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.warehouseCode"
                                select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="调入仓库"
                                form-require="true"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.warehouseCode && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span translate>请选择调入仓库</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入库区</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.inArea" select-obj="selectArea()"
                                clear-form="clearArea()" tips-name="调入库区" form-require="!isNJ"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.inArea && submitted && !isNJ">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span translate>请选择调入库区</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control" ng-model="detailInfo.headerInfo.note"
                                maxlength="100">
                        </div>
                    </div>
                </form>
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i><span translate>零件信息</span>
                    </div>
                </div>
                <div class="row wrapper-y-xs">
                    <div class="col-xs-12 operate-bar font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                        <button class="btn btn-operate m-r-sm" ng-if="isJCHK && curSelectId" ng-click="importMateriel()" translate>导入</button>
                    </div>
                </div>
                <div class="main-area d-b-60" style="top:290px;">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="th-check text-center">
                                            <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                                yb-click="selectAll('del')"></div>
                                        </th>
                                        <th width="80" translate>
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="newTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.detailList track by $index">
                                        <td width="40" class="text-center">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="selectSingle(item, 'del')"
                                                yb-disabled="item.status == 2 || item.status == 3"></div>
                                        </td>
                                        <td width="80">
                                            <button type="button" class="btn btn-operate" ng-click="delMateri($index)"
                                                translate>删除</button>
                                        </td>
                                        <td ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots" ng-if="!itemCol.input">
                                                {{item[itemCol.dataField]}}
                                            </div>
                                            <div ng-if="!!itemCol.input && itemCol.inputType === 'num'"
                                                class="td-edit pos-r">
                                                <input type="text" class="form-control"
                                                    ng-model="item[itemCol.dataField]" ng-change="checkQty(item)"
                                                    yb-number-input max="99999999.99"
                                                    disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': !!item.deliveryQtyErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.deliveryQtyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.deliveryQtyErrMsg}}</div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0"
                            translate>暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="prevStep()" translate ng-if="!isImportAdd">上一步</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)" translate>提交</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>取消</button>
                </div>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]">
            <hy-layout>
                <hy-layout-form>
                    <form name="$parent.form" class="p-t-sm p-b-sm form-horizontal form-up-tb clearfix" novalidate>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>采购入库单号</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.purchaseInboundOrder}}">
                                {{detailInfo.headerInfo.purchaseInboundOrder}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>采购订单号</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.purchaseRequestOrder}}">
                                {{detailInfo.headerInfo.purchaseRequestOrder}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.createName}}">
                                {{detailInfo.headerInfo.createName}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单部门</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.deptName}}">
                                {{detailInfo.headerInfo.deptName}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>调入仓库</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="detailInfo.headerInfo.warehouseCode" select-obj="selectWarehouse()"
                                    clear-form="clearWarehouse()" tips-name="调入仓库" form-require="true"></div>
        
                                <div class="msg-block" ng-if="!detailInfo.headerInfo.warehouseCode && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span translate>请选择调入仓库</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>调入库区</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="detailInfo.headerInfo.inArea" select-obj="selectArea()"
                                    clear-form="clearArea()" tips-name="调入库区" form-require="!isNJ"></div>
        
                                <div class="msg-block" ng-if="!detailInfo.headerInfo.inArea && submitted && !isNJ">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span translate>请选择调入库区</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>收货员</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headerInfo.receiverName" maxlength="50">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headerInfo.note" maxlength="100">
                            </div>
                        </div>
                        <!-- <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>供货商</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{detailInfo.headerInfo.supplierOrgName}}">
                                {{detailInfo.headerInfo.supplierOrgName}}
                            </label>
                        </div> -->
                    </form>
                </hy-layout-form>
                <hy-layout-table>
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in editTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="editTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in editTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.input || item.status == 2 || item.status == 3">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && (item.status == 0 || item.status == 1)" class="td-edit pos-r">
                                            <div ng-if="itemCol.inputType === 'qtyFlag'">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    yb-number-input max="99999999.99" disable-decimal="false" decimal-places="3"
                                                    ng-change="checkCaigouAmount(item,'qty')"
                                                    ng-focus="showErrTip(item,'qty',['UnderErr'])" ng-blur="hideErrTip(item,'qty')"
                                                    ng-class="{'error':item.qtyEmptyErr||item.qtyUnderErr||item.qtyShowErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyShowErr">
                                                    <div ng-if="item.qtyEmptyErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">采购数量不能为空和0</div>
                                                    </div>
                                                    <div ng-if="item.qtyUnderErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">采购数量不能低于入库数量</div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div ng-if="itemCol.inputType === 'amountFlag'">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    yb-number-input max="99999999.99" disable-decimal="false" decimal-places="3"
                                                    ng-change="checkRukuAmount(item, 'amount')"
                                                    ng-focus="showErrTip(item,'amount',['ExceedErr'])" ng-blur="hideErrTip(item,'amount')"
                                                    ng-class="{'error':item.amountEmptyErr||item.amountExceedErr||item.amountShowErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.amountShowErr">
                                                    <div ng-if="item.amountEmptyErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">入库数量不能为空和0</div>
                                                    </div>
                                                    <div ng-if="item.amountExceedErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">入库数量不能超过采购数量</div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据</div>
                </hy-layout-table>
                <hy-layout-footer>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)" translate>提交</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>取消</button>
                </hy-layout-footer>
            </hy-layout>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <hy-layout>
                <hy-layout-form>
                    <div class="m-t-sm form-up-tb clearfix">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购入库单号</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.purchaseInboundOrder || '-'}}">
                                {{detailInfo.headerInfo.purchaseInboundOrder || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购订单号</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.purchaseRequestOrder || '-'}}">
                                {{detailInfo.headerInfo.purchaseRequestOrder || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.warehouseCode || '-'}}">
                                {{detailInfo.headerInfo.warehouseCode || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inArea || '-'}}">
                                {{detailInfo.headerInfo.inArea || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                                {{detailInfo.headerInfo.createName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deptName || '-'}}">
                                {{detailInfo.headerInfo.deptName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货员</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiverName || '-'}}">
                                {{detailInfo.headerInfo.receiverName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                                {{detailInfo.headerInfo.note || "-"}}
                            </div>
                        </div>
                    </div>
                </hy-layout-form>
                <hy-layout-table>
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfoDetail.allChecked"
                                            yb-click="selectDetailAll('')"></div>
                                    </th>
                                    <th width="60" class="border-l-none" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="detailTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index"
                                    ng-class="{'row-selected': $index === markInfoDetail.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectDetailSingle(item,'')"></div>
                                    </td>
                                    <td width="60" class="font-0">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="mandatoryFinish(detailInfo.headerInfo.purchaseInboundOrder, detailInfo.headerInfo.id, item)"
                                            ng-disabled="detailInfo.headerInfo.status == 2 || detailInfo.headerInfo.status == 3 || item.status == 2 || item.status == 3 || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}"
                                            translate>结单</button>
                                    </td>
                                    <td ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据</div>
                </hy-layout-table>
                <hy-layout-footer>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="mandatoryFinish(detailInfo.headerInfo.purchaseInboundOrder, detailInfo.headerInfo.id)"
                        ng-disabled="detailInfo.headerInfo.status == 2 || detailInfo.headerInfo.status == 3 || !btnPermission.mandatoryFinish"
                        title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}" translate>结单</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>返回</button>
                </hy-layout-footer>
            </hy-layout>
        </div>
        <div tab heading="入库" active="activeFlag[4]" ng-if="activeFlag[4]">
            <hy-layout>
                <hy-layout-form>
                    <div class="m-t-sm form-up-tb clearfix">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购入库单号</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.purchaseInboundOrder || '-'}}">
                                {{detailInfo.headerInfo.purchaseInboundOrder || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购订单号</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.purchaseRequestOrder || '-'}}">
                                {{detailInfo.headerInfo.purchaseRequestOrder || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入仓库</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots"
                                title="{{detailInfo.headerInfo.warehouseCode || '-'}}">
                                {{detailInfo.headerInfo.warehouseCode || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>调入库区</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.inArea || '-'}}">
                                {{detailInfo.headerInfo.inArea || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                                {{detailInfo.headerInfo.createName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单部门</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deptName || '-'}}">
                                {{detailInfo.headerInfo.deptName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createDate | YbDate}}">
                                {{detailInfo.headerInfo.createDate | YbDate}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货员</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.receiverName || '-'}}">
                                {{detailInfo.headerInfo.receiverName || "-"}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                                {{detailInfo.headerInfo.note || "-"}}
                            </div>
                        </div>
                    </div>
                </hy-layout-form>
                <hy-layout-table>
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status == 2 || item.status == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'func' && (item.status == 0 || item.status == 1)"
                                            class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                                select-obj="selDepot(item)" clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item[itemCol.dataField]}}"
                                                ng-class="{'error': !!item.locationErr}"></div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.locationErr && !item.locationCode">
                                                <i class="triangle"></i>
                                                <div class="msg" translate>请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据</div>
                </hy-layout-table>
                <hy-layout-footer>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()" translate>确认入库</button>
                    <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
                </hy-layout-footer>
            </hy-layout>
        </div>
        <div tab heading="新增" active="activeFlag[5]" ng-if="activeFlag[5]">
            <hy-layout>
                <hy-layout-form>
                    <form name="$parent.form" class="p-t-sm p-b-sm form-horizontal form-up-tb clearfix" novalidate>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单人</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.createName}}">
                                {{detailInfo.headerInfo.createName}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单部门</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.deptName}}">
                                {{detailInfo.headerInfo.deptName}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>制单时间</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                                title="{{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                            </label>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入仓库</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="detailInfo.headerInfo.warehouseCode"
                                    select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="调入仓库"
                                    form-require="true"></div>
        
                                <div class="msg-block" ng-if="!detailInfo.headerInfo.warehouseCode && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span translate>请选择调入仓库</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>调入库区</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="detailInfo.headerInfo.inArea" select-obj="selectArea()"
                                    clear-form="clearArea()" tips-name="调入库区" form-require="!isNJ"></div>
        
                                <div class="msg-block" ng-if="!detailInfo.headerInfo.inArea && submitted && !isNJ">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span translate>请选择调入库区</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>收货员</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headerInfo.receiverName" maxlength="50">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span translate>备注</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headerInfo.note" maxlength="100">
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>采购订单号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headerInfo.purchaseRequestOrder" maxlength="100" name="purchaseRequestOrder" required>
                                
                                <div class="msg-block"
                                    ng-show="form.purchaseRequestOrder.$dirty || (form.purchaseRequestOrder.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="form.purchaseRequestOrder.$error.required && !form.purchaseRequestOrder.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>供货商</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="detailInfo.headerInfo.supplierOrgName" select-obj="selectSold()"
                                    clear-form="clearSold()" tips-name="供货商" form-require="true"></div>

                                <div class="msg-block" ng-if="!detailInfo.headerInfo.supplierOrgName && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span translate>请选择供货商</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </hy-layout-form>
                <hy-table-operation>
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)" translate>选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importMaterielBy()" translate>导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()" translate>批量删除</button>
                </hy-table-operation>
                <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="detailInfo.detailList"></div>
                <hy-layout-table>
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{newByTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll('del')"></div>
                                    </th>
                                    <th width="60" translate>
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in newByTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="newByTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{newByTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, 'del')"
                                            yb-disabled="item.status == 2 || item.status == 3"></div>
                                    </td>
                                    <td width="60">
                                        <button type="button" class="btn btn-operate" ng-click="delMateri($index)" translate>删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in newByTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div ng-if="!itemCol.input" class="spill-dots">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input" class="td-edit pos-r">
                                            <div ng-if="itemCol.inputType === 'qtyFlag'">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    yb-number-input max="99999999.99" disable-decimal="false" decimal-places="3"
                                                    ng-change="checkCaigouAmount(item,'qty')"
                                                    ng-focus="showErrTip(item,'qty',['UnderErr'])" ng-blur="hideErrTip(item,'qty')"
                                                    ng-class="{'error':item.qtyEmptyErr||item.qtyUnderErr||item.qtyShowErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyShowErr">
                                                    <div ng-if="item.qtyEmptyErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">采购数量不能为空和0</div>
                                                    </div>
                                                    <div ng-if="item.qtyUnderErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">采购数量不能低于入库数量</div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div ng-if="itemCol.inputType === 'amountFlag'">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    yb-number-input max="99999999.99" disable-decimal="false" decimal-places="3"
                                                    ng-change="checkRukuAmount(item, 'amount')"
                                                    ng-focus="showErrTip(item,'amount',['ExceedErr'])" ng-blur="hideErrTip(item,'amount')"
                                                    ng-class="{'error':item.amountEmptyErr||item.amountExceedErr||item.amountShowErr}">
                                                <div class="pos-a tool-tips" ng-if="!!item.amountShowErr">
                                                    <div ng-if="item.amountEmptyErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">入库数量不能为空和0</div>
                                                    </div>
                                                    <div ng-if="item.amountExceedErr">
                                                        <i class="triangle"></i>
                                                        <div class="msg">入库数量不能超过采购数量</div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0" translate>暂时没有数据</div>
                </hy-layout-table>
                <hy-layout-footer>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)" translate>提交</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()" translate>取消</button>
                </hy-layout-footer>
            </hy-layout>
        </div>
    </div>
</div>